
<div class="well">
    <h4><?= $tpl[ "dados" ][ "tituloform" ] ?></h4>
</div>

<form class="form-horizontal" method="POST" action="index.php?m=admin&c=usuario&a=<?= $tpl[ "dados" ][ "action" ] ?>">
    <input type="hidden" value="<?= $tpl[ "dados" ][ "usuarioid" ] ?>" name="idusuario" />
    <div class="control-group">
        <label class="control-label" for="lblUsuario">Login:</label>
        <div class="controls">
            <input type="text" name="usuariologin"  value="<?= $tpl[ "dados" ][ "usuariologin" ] ?>" <?= $tpl[ "dados" ][ "auxlogin" ] ?> autofocus required />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="lblNome">Nome:</label>
        <div class="controls">
            <input type="text" name="usuarionome"  value="<?= $tpl[ "dados" ][ "usuarionome" ] ?>" autofocus required/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="lblSenha">Senha:</label>
        <div class="controls">
            <input type="password" name="usuariosenha"  value="" <?= $tpl[ "dados" ][ "auxsenha" ] ?> />
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="lblSenha">Acesso:</label>
        <div class="controls">
            <select name="visaousuarioid" class="form-control">
                <?php foreach ( $tpl[ "dados" ][ "visaousuario" ] as $uv ) { ?>
                     <option value="<?= $uv[ "visaousuarioid" ] ?>" <?php if ( $uv[ "visaousuarioid" ] == $tpl[ "dados" ][ "visaousuarioid" ] ) echo ' selected="selected" '; ?>><?= $uv[ "visaousuarionome" ] ?></option>
                 <?php } ?>
            </select>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input type="submit" value="<?= $tpl[ "dados" ][ "labelbtnsubmit" ] ?>" class="btn btn-primary btn-large" />
        </div>
    </div>
</form>
